import request from '@/utils/request'

// 查询面试岗位列表
export function listQuestionSector(query) {
  return request({
    url: '/question/questionSector/list',
    method: 'get',
    params: query
  })
}

// 查询面试岗位详细
export function getQuestionSector(sectorId) {
  return request({
    url: '/question/questionSector/' + sectorId,
    method: 'get'
  })
}

// 新增面试岗位
export function addQuestionSector(data) {
  return request({
    url: '/question/questionSector',
    method: 'post',
    data: data
  })
}

// 修改面试岗位
export function updateQuestionSector(data) {
  return request({
    url: '/question/questionSector',
    method: 'put',
    data: data
  })
}

// 删除面试岗位
export function delQuestionSector(sectorId) {
  return request({
    url: '/question/questionSector/' + sectorId,
    method: 'delete'
  })
}

// 查询面试岗位分类树
export function listQuestionTree(query) {
  return request({
    url: '/question/questionSector/question/tree',
    method: 'get',
    params: query
  })
}
